1.1.2Updated a month ago
import { Handler } from "$fresh/server.ts";

/**
 * Will trigger the /api middleware for all paths that don't exist
 * 
 * If [...path].ts does not exist, all non-existent routes will return an HTML 404 page.
 * 
 * This is to ensure that `/api/` errors are always JSON.
 */

export const handler: Handler = () => {throw new Deno.errors.NotFound};